package fr.sedoo.commons.client.user;

import java.io.Serializable;

public class DefaultAuthenticatedUser implements AuthenticatedUser, Serializable  {

	private String name;
	private boolean admin;
	
	@Override
	public boolean isAdmin() {
		return admin;
	}
	@Override
	public String getName() {
		return name;
	}
	
	public void setAdmin(boolean admin) {
		this.admin = admin;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public DefaultAuthenticatedUser()
	{
		
	}
	
	public DefaultAuthenticatedUser(AuthenticatedUser authenticatedUser)
	{
		setName(authenticatedUser.getName());
		setAdmin(authenticatedUser.isAdmin());
	}

}
